var dbserver = require('../dao/dbserver');
//引入token
var jwt = require('../dao/jwt');

//用户登录
exports.signIn = function(req,res){
  let{data,pwd} = req.body
  
  dbserver.userMatch(data,pwd,res);
}

//token解析测试代码
exports.test = function(req,res){
  let token = req.body.token
  let result = jwt.verifyToken(token);
  res.send(result);
}
